Now that you have the unpacked values from the binary buffer that you read, you can use the standard print commands to get the output necessary. 现在您已从读取的二进制缓冲区获得了拆包的值,那么您可以使用标准的print命令来获得必要的输出。
Finally, purify_what_colors is called to print the color of the memory buffer. 最后,purifywhatcolors被调用来打印这个内存缓冲的颜色。
The snprintf function allows you to print safely into a buffer of fixed size. snprintf函数让您可以安全地输出到固定大小的缓冲区。
The dmesg command can also be used to print and control the kernel ring buffer. dmesg命令也可用于打印和控制内核环缓冲区。